//
//  RemaiCollectionViewCell.m
//  lmq
//
//  Created by 马田成 on 2017/4/1.
//  Copyright © 2017年 yuanxin. All rights reserved.
//

#import "RemaiCollectionViewCell.h"
#import "Masonry.h"
@implementation RemaiCollectionViewCell
-(id)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        
        self.imageshow = [[UIImageView alloc] init];
        [self addSubview:self.imageshow];
        [self.imageshow mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView).with.offset(10);
            make.left.equalTo(self.contentView).with.offset(15);
            make.right.equalTo(self.contentView).with.offset(-15);
            make.height.offset(230);
            
        }];
        
        self.titleLabel = [[UILabel alloc] init];
        [self addSubview:self.titleLabel];
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.imageshow.mas_bottom).with.offset(10);
            make.left.equalTo(self.contentView).with.offset(15);
            make.right.equalTo(self.contentView).with.offset(-60);
            make.height.offset(20);
            
        }];
        
        self.moneyLable = [[UILabel alloc] init];
        [self addSubview:self.moneyLable];
        [self.moneyLable mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.imageshow.mas_bottom).with.offset(20);
            make.right.equalTo(self.contentView).with.offset(-15);
            make.width.offset(100);
            make.height.offset(15);
            
        }];
        
        
        
        
    }
    return self;
}

@end
